@import "./global";

.dropzone{
	min-height: 120px;
	border:2px dashed @input-color-1;
	background:@input-color-3;
	padding:10px;
    border-radius: 4px;
    position: relative;
    transition:border-color 0.2s linear;
}
.dropzone-mini{
    padding: unset !important;
    min-height: unset !important;
    width: 38px;
    height: 38px;
}
.dropzone:hover{
    border-color: @color-3;
    transition:border-color 0.2s linear;
}
.dropzone .dz-message{
    font-size: 14px;
    min-height: 74px;
}
.dropzone .dz-mini{
    margin: unset !important;
    min-height: unset !important;
    i{
        font-size: 24px !important;
        margin-bottom: 0 !important;
        margin-top: 3px !important;
    }
}
.dropzone .dz-message i{
    font-size:42px;
    margin:0 auto;
    display:block;
    margin-bottom:10px;
}
.dropzone.dz-clickable{
    cursor: pointer;
}
.dropzone.dz-clickable:not(.dz-remove){
	cursor: default;
}
.dropzone.dz-clickable .dz-message, 
.dropzone.dz-clickable .dz-message * {
    cursor: pointer;
}
.dropzone.dz-started .dz-message{
    display: none;
}
.dropzone .dz-message{
    text-align: center;
    margin: 2em 0;
}
.dropzone .dz-preview{
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 5px;
    min-height: 110px;
}
.dropzone .dz-preview-mini{
    min-height: unset !important;
    margin: 2px !important;
    .dz-image{
        width: unset !important;
        height: unset !important;
    }
    .dz-success-i,
    .dz-error-i,
    .dz-remove-i{
        font-size: 12px !important;
        opacity: 0 !important;
        right: 0px !important;
        bottom:0px !important;
    }
}
.dropzone .dz-preview .dz-success-i,
.dropzone .dz-preview .dz-error-i,
.dropzone .dz-preview .dz-remove-i{
	opacity: 0;
	z-index: 500;
	position: absolute;
	display: block;
	bottom:3px;
    right:3px;
    margin-right: 0;
	font-size:18px;
}
.dropzone .dz-preview .dz-success-i{
	color:@mcolor-2;
}
.dropzone .dz-preview .dz-error-i{
	color:@mcolor-1;
}
.dropzone .dz-preview .dz-remove-i{
	opacity: 1;
	color:#FFF;
	cursor: pointer;
}
.dropzone .dz-error .dz-error-i{
	opacity: 1 !important;
}
.dropzone .dz-success .dz-success-i{
	opacity: 1 !important;
}
.dropzone .dz-complete .dz-remove-i{
	opacity: 0;
}
.dropzone .dz-preview .dz-image{
    border-radius: 4px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    position: relative;
    display: block;
    z-index: 10;
    background: @color-5;
}
.dropzone .dz-preview .dz-details{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    text-align: center;
    padding: 2em 1em;
    display: none;
}
.dropzone .dz-preview .dz-details .dz-filename{
    margin-bottom: 1em;
    font-size: 14px;
    text-overflow:ellipsis;
    overflow: hidden;
}
.dropzone .dz-preview .dz-details .dz-size strong{
    background: unset !important;
    margin: unset !important;
}
.dropzone .dz-preview .dz-image img{
    display: block;
    border-radius:5px;
    width: 100%;
}
.dropzone .dz-button{
    position: absolute;
    bottom: 5px;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 10px 0 10px;
    width: 100%;
    overflow: hidden;
    height: 40px;
    line-height: 30px;
}
.dropzone .dz-button button{
    float: right;
}
.dropzone .dz-button span{
    float: left;
}
.dropzone .dz-preview.dz-processing .dz-progress{
    opacity: 1;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}
.dropzone .dz-preview.dz-complete .dz-progress{
    opacity: 0;
    -webkit-transition: opacity 0.4s ease-in;
    -moz-transition: opacity 0.4s ease-in;
    -ms-transition: opacity 0.4s ease-in;
    -o-transition: opacity 0.4s ease-in;
    transition: opacity 0.4s ease-in;
}
.dropzone .dz-preview:not(.dz-processing) .dz-progress{
    -webkit-animation: pulse 6s ease infinite;
    -moz-animation: pulse 6s ease infinite;
    -ms-animation: pulse 6s ease infinite;
    -o-animation: pulse 6s ease infinite;
    animation: pulse 6s ease infinite; 
}
.dropzone .dz-preview .dz-progress{
    opacity: 0;
    z-index: 1000;
    pointer-events: none;
    position: absolute;
    height: 4px;
    top: 0;
    width: 100%;
    -webkit-transform: scale(1);
    overflow: hidden;
}
.dropzone .dz-preview .dz-progress .dz-upload{
	background: @color-3;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    -webkit-transition: width 300ms ease-in-out;
    -moz-transition: width 300ms ease-in-out;
    -ms-transition: width 300ms ease-in-out;
    -o-transition: width 300ms ease-in-out;
    transition: width 300ms ease-in-out;
}